/** 查询参数 */
export interface TaskJobDataRequestData extends ApiBasePageQuery {
  name: string
  code: string
  group: string | null
  status: string | null
}

export interface TaskJobData {
  id: number | null | undefined
  name: string
  code: string
  group: string
  status: string
  cron: string
  note: string
  statusText?: string
}

export type TaskJobDataResponseData = ApiResponseData<ApiPageInfo<TaskJobData>>

/** ******************log  below************************ */
export interface TaskJobLogDataRequestData extends ApiBasePageQuery {
  /** 查询参数：name */
  taskJobId: number | null | undefined
  status: string | null
  result: string | null
  executor: string | null
}
// 任务日志
export interface TaskJobLogData {
  id: number | null | undefined
  taskJobId: number
  taskJobName: string
  status: string
  result: string
  resultNote: string
  executor: string
  createTime: string
}

// 任务日志详情
export interface TaskJobLogDetailData {
  id: number | null | undefined
  taskJobLogId: number
  result: string
  resultNote: string
  createTime: string
}

export type TaskJobLogDataResponseData = ApiResponseData<ApiPageInfo<TaskJobLogData>>
